//脚本资源国际化支持
var BetaLocale = {
    _resources : {},
    append : function(resx) {
        for (var key in resx)
            this._resources[key] = resx[key];
    },
    get : function(messageCode) {
        var value = this._resources[messageCode];
        if (arguments.length > 1) {
            for (var i = 0; i < arguments.length - 1; i++)
                value = String.format(value, {i:arguments[i+1]});
        }
        return value;
    }
}
var l = function (){
    return BetaLocale.get.apply(BetaLocale, arguments);
}